<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
	name="viewport">
<title>登录</title>
<!-- Bootstrap core CSS -->
<link href="assets/libs/bootstrap/3.3.7/css/bootstrap.css"
	rel="stylesheet">
</head>
<body role="document">
	<input type="hidden" id="base" value="${pageContext.request.contextPath}">
	<!-- Fixed navbar -->
	<nav class="navbar navbar-inverse navbar-fixed-top">
		<div class="container">
			<div id="navbar" class="navbar-collapse collapse">
				<ul class="nav navbar-nav">
					<li><a href="">首 页</a></li>

					<li><a href='view/register'>注 册</a></li>
					<li class="active"><a href='user/login'>登 录</a></li>
				</ul>
			</div>
			<!--/.nav-collapse -->
		</div>
	</nav>
	<div class="container theme-showcase" role="main">
		<div class="row">
			<div class="col-md-4 col-md-offset-4">
				<div class="page-header">
					<h2>
						<br /> <br />请登录
					</h2>
				</div>
				<form method="post" action="<c:url value='user'/>">
				<input type="hidden" name="method" value="login" />
					<div class="form-group ">
						<label for="email">用户名</label> <input name="userName" type="text"
							class="form-control" placeholder="用户名" >
						<span style="color: red; font-weight: 900" id="errorEmailSpan"></span>
					</div>
					<div class="form-group ">
						<label for="password">密码</label> <input name="password"
							type="password" class="form-control" id="password"
							placeholder="密码" maxlength="10" value=""> <span
							style="color: red; font-weight: 900" id="errorPasswordSpan"></span>
					</div>
					<button type="submit"  class="btn btn-primary">登录</button>
					<a href='view/register' class="btn btn-info" role="button">注册</a>
					<span style="color: red; font-weight: 900" id="errorEmailSpan">${msg}</span>
				</form>
			</div>
		</div>
	</div>
	<script type="text/javascript"
		src="assets/libs/jquery/1.12.4/jquery.js"></script>
	<script type="text/javascript"
		src="assets/libs/bootstrap/3.3.7/js/bootstrap.js"></script>
</body>
</html>
